package com.piggy.logi.sys.api.bo;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 订单价格预估请求参数
 *
 * @author fengxy
 * @date 2024/01/15 15:42
 **/
@Data
public class TryServiceBo {

    @NotNull(message = "服务商id不能为空")
    @ApiModelProperty(value = "服务商id")
    private Long deptId;

    @NotBlank(message = "发货地不能为空")
    @ApiModelProperty(value = "发货地（省+市+区+详细地址，例：广东省深圳市南山区深圳大学）")
    private String originAddress;

    @NotBlank(message = "收货地不能为空")
    @ApiModelProperty(value = "收货地（省+市+区+详细地址，例：广东省深圳市南山区深圳大学）")
    private String destinationAddress;

    @NotNull(message = "重量（吨）不能为空")
    @ApiModelProperty(value = "重量（吨）")
    private BigDecimal weight;

}
